import Layout from '@/layouts'

/**
 * 异步:动态路由  平台管理
 */
const PlatformRoute = {
  path: '/platform',
  component: Layout,
  name: '平台管理',
  icon: 'platform',
  meta: { 
		title: '平台管理' ,
		icon: 'platform'
  },
  authCode: 'platform',
  children: [{
	path: 'feedback',
	icon: 'feedback',
	component: () => import('@/views/modules/platform/feedback/list'),
	name: '意见反馈',
	meta: { 
		title: '意见反馈',
		icon: 'feedback'
	},
	authCode: 'platform:feedback',
	children:[
	{
		path: 'view',
		component: () => import('@/views/modules/platform/feedback/view'),
		name: '查看详情',
		meta: {
			title: '查看意见反馈详情',
		},
		hidden: true
	}]
  },{
	path: 'region',
	icon: 'quyu',
	component: () => import('@/views/modules/platform/region/list'),
	name: '区域管理',
	meta: { 
		title: '区域管理',
		icon: 'quyu'
	},
	authCode: 'platform:region',
	},
	{
		path: 'message',
		icon: 'message',
		component: () => import('@/views/modules/platform/message/list'),
		name: '通知公告',
		meta: { 
			title: '通知公告',
			icon: 'message'
		},
		authCode: 'platform:message',
		children:[
			{
				path: 'view',
				component: () => import('@/views/modules/platform/message/view'),
				name: '查看详情',
				meta: {
					title: '查看通知详情',
				},
				hidden: true
			},
			{
				path: 'add',
				component: () => import('@/views/modules/platform/message/add'),
				name: '新增通知',
				meta: {
					title: '新增通知',
				},
				hidden: true
			},
			{
				path: 'edit',
				component: () => import('@/views/modules/platform/message/edit'),
				name: '修改通知',
				meta: {
					title: '修改通知',
				},
				hidden: true
			},
			{
				path: 'send',
				component: () => import('@/views/modules/platform/message/send'),
				name: '发送消息',
				meta: {
					title: '发送消息',
				},
				hidden: true
			},
			{
				path: 'recode',
				component: () => import('@/views/modules/platform/message/recode/list'),
				name: '消息接收列表',
				meta: {
					title: '消息接收列表',
				},
				hidden: true
			},
			{
				path: 'modual',
				component: () => import('@/views/modules/platform/message/modual/list'),
				name: '模块配置',
				meta: {
					title: '模块配置',
				},
				hidden: true,
				children:[
					{
						path: 'add',
						component: () => import('@/views/modules/platform/message/modual/add'),
						name: '新增模块',
						meta: {
							title: '新增模块',
						},
						hidden: true
					},
					{
						path: 'edit',
						component: () => import('@/views/modules/platform/message/modual/edit'),
						name: '修改模块',
						meta: {
							title: '修改模块',
						},
						hidden: true
					}
				]
			},
			
		]
	}
  ]
}
export default PlatformRoute